﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Admin_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng Nhập</title>
    <style type="text/css">
        body
        {
            margin: 0;
            padding: 0;
            font-family: Tahoma;
            font-size: 12px;
            background: #fff url(images/body_bg.gif) 0 -35px repeat-x;
        }
        h2
        {
            background: url(    'images/table_header_bg.gif' ) no-repeat;
            background-position: center 20px;
            color: #da5d0e;
            font-size: 14px;
            font-weight: bold;
            height: 40px;
            width: auto;
            text-align: center;
            margin-left: 8px;
            clear: both;
        }
        .login
        {
            margin: 0 auto;
            width: 300px;
            padding-top: 150px;
        }
        .login table
        {
        	text-align:center;
        	width:100%;
        }
    </style>
    <link href="../css/redmond/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.js" type="text/javascript"></script>

    <script src="js/util.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="login">
        <asp:Login ID="Login1" runat="server" DestinationPageUrl="~/Admin/Default.aspx">
            <LayoutTemplate>
                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td>
                            <table border="0" cellpadding="0">
                                <tr>
                                    <td align="center" colspan="2">
                                        <h2>
                                            Đăng nhập</h2>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Tên đăng nhập
                                    </td>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="Nhập tên đăng nhập." ToolTip="Nhập tên đăng nhập." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        Mật khẩu
                                    </td>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                            ErrorMessage="Nhập mật khẩu." ToolTip="Nhập mật khẩu." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:CheckBox ID="RememberMe" runat="server" Text="Ghi nhớ lần đăng nhập kế tiếp." />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color: Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="padding-top:10px">
                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Đăng nhập" ValidationGroup="Login1" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>
        </asp:Login>
    </div>
    </form>
</body>
</html>
